package com.github.niefy.modules.wx.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.niefy.common.utils.PageUtils;
import com.github.niefy.modules.wx.entity.WxTemplateLogEntity;
import com.github.niefy.modules.wx.form.TemplateMsgBatchForm;
import me.chanjar.weixin.mp.bean.template.WxMpTemplateMessage;

import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-11-18 10:39:26
 */
public interface WxTemplateLogService extends IService<WxTemplateLogEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 发送微信模版消息
     */
    void sendTemplateMsg(WxMpTemplateMessage msg, String appid);

    /**
     * 批量消息发送
     * @param form
     * @param appid
     */
    void sendMsgBatch(TemplateMsgBatchForm form, String appid);

}

